/**
 *  Class Name : Cert
 *  Description : 인증서 정보
 *  Modification Information
 * 
 *    수정일      	  수정자         수정내용
 *   ---------   ------   --------------------------
 *   2011.09.29  이주영         최초 생성
 *
 *  @author 통합앱 - 인증서정보(이주영)
 *  @since 2010.09.30
 *  @version 1.0
 * 
 *  Copyright (C) 2011 by (주)이타기술  All right reserved.
 */

package gov.mogaha.ntis.cmm.mob.servlet.bean;

import java.io.Serializable;

public class Cert implements Serializable{	
	
	/** 사용 용도 */
	private String oid = "";			
	/** 일련번호 */
	private String serialNumber = ""; 	
	/** 발급자 */
	private String issuerDnO = "";		
	/** 발급자 */
	private String issuerDnCa = "";	
	/** 시작일자 */
	private String validityFrom = "";	
	/** 만료일자 */
	private String validityTo = ""; 	
	/** 주체자 */
	private String subjectDN = "";		
	/** 사용자 이름 */
	private String userName = "";		
	
	/* set,get */
	public String getOID() {
		return nullChecker(oid);
	}
	public void setOID(String oid) {
		this.oid = oid;
	}
	public String getSerial_number() {
		return nullChecker(serialNumber);
	}
	public String getUserName() {
		return nullChecker(userName);
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public void setSerial_number(String serialNumber) {
		this.serialNumber = serialNumber;
	}
	public String getIssuerDN_O() {
		return nullChecker(issuerDnO);
	}
	public void setIssuerDN_O(String issuerDnO) {
		this.issuerDnO = issuerDnO;
	}
	public String getIssuerDN_CA() {
		return nullChecker(issuerDnCa);
	}
	public void setIssuerDN_CA(String issuerDnCa) {
		this.issuerDnCa = issuerDnCa;
	}
	public String getValidityFrom() {
		return nullChecker(validityFrom);
	}
	public void setValidityFrom(String validityFrom) {
		this.validityFrom = validityFrom;
	}
	public String getValidityTo() {
		return nullChecker(validityTo);
	}
	public void setValidityTo(String validityTo) {
		this.validityTo = validityTo;
	}
	public String getSubjectDN() {
		return nullChecker(subjectDN);
	}
	public void setSubjectDN(String subjectDN) {
		this.subjectDN = subjectDN;
	}	
	private String nullChecker(String str){
		if(str == null){
			str = "";
		}
		return str;
	}
}
